package com.ibm.psbc.cloud.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import com.ibm.corebanking.idmf.dubbo.server.annotation.IdmfDubboService;

@IdmfDubboService(group = "${cluster}-${dusId}", serviceCodeSpliter = UserServiceMultiSpliter.class)
@Component
public class UserServiceImpl implements UserService {
	private final Logger logger = LoggerFactory.getLogger(getClass());

	@Value("${dusId}")
	String group;
	@Override
	public String hello(String user) {
		logger.info("Hello from service to :{}@{}", user, group);
		return "Hello " + user + " from:" + group;
	}

}
